package com.zznj.xzjc.adapter.index;

import android.text.Html;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.zznj.xzjc.R;
import com.zznj.xzjc.net.entity.WorkAnLiBean;
import com.zznj.xzjc.utils.TimeUtils;

import java.util.List;

import androidx.annotation.Nullable;

/**
 * 工作和案源播放
 */
public class WorkInfoAnLiAdapter extends BaseQuickAdapter<WorkAnLiBean, BaseViewHolder> {

    public WorkInfoAnLiAdapter(int layoutResId, @Nullable List<WorkAnLiBean> data) {
        super(layoutResId, data);
    }

    @Override
    protected void convert(BaseViewHolder helper, WorkAnLiBean item) {
        helper.setText(R.id.tv_title, Html.fromHtml(item.getOtherName()+"<span style='background:#'></span>"));
        helper.setText(R.id.tv_date, TimeUtils.getTime(item.getCreateTime(),"yyyy-MM-dd"));
        helper.setText(R.id.tv_address,item.getName());
    }
}
